<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电影评论</title>
    <%- include common %>
</head>
<body>
    <%- include("head",{title:"mlist",username})%>
    <div class="container container-fluid">
        <div class="row" >
            <div class="col-md-6 col-sm-6 col-lg-6">
                <h2 class="text-success text-center"> <span class="text-danger"><%- author %></span> 所有电影评论</h2>
                <ul style="list-style: none;">
                <%    result.map((item,i)=>{  %>
                        <li style="margin-top:20px;border-bottom:1px dashed blue">
                            <div style="display: flex;justify-content: space-between;">
                                <p># <%- i + 1 %> </p>
                                <p class=" text-warning"> 时间 : <%- logintime %> </p>
                            </div>
                            <div style="display: flex;justify-content: space-between;">
                                <h5 class="pull-right text-primary ">标题:  <%- item.title  %></h5>
                                <p>评论电影-  <%- item.movie.title %></p>
                            </div>
                            <div class="text-success" style="padding-bottom:10px;padding-top:10px;"> 内容:  <%- item.content  %></div>
                        </li>
                <%    })  %>
                </ul>
            </div>
        </div>        
    </div>
    <%- include footer %>
</body>
</html>